package com.cloud.ceshi;

import com.cloud.common.security.annotation.EnableCustomConfig;
import com.cloud.common.security.annotation.EnableRyFeignClients;
import feign.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;

/**
 * 系统模块
 * 
 * @author cloud
 */
@EnableCustomConfig
@EnableRyFeignClients
@SpringBootApplication
public class CloudCeshiApplication
{
//    全局配置日志配置
    @Bean
    public Logger.Level getLog()
    {
        return Logger.Level.FULL;
    }
    public static void main(String[] args)
    {
        try {
            SpringApplication.run(CloudCeshiApplication.class, args);
            System.out.println("(♥◠‿◠)ﾉﾞ  系统模块启动成功   ლ(´ڡ`ლ)ﾞ  \n" +
                    " .-------.       ____     __        \n" +
                    " |  _ _   \\      \\   \\   /  /    \n" +
                    " | ( ' )  |       \\  _. /  '       \n" +
                    " |(_ o _) /        _( )_ .'         \n" +
                    " | (_,_).' __  ___(_ o _)'          \n" +
                    " |  |\\ \\  |  ||   |(_,_)'         \n" +
                    " |  | \\ `'   /|   `-'  /           \n" +
                    " |  |  \\    /  \\      /           \n" +
                    " ''-'   `'-'    `-..-'              ");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
